home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doodle_d.swf / scripts / DefineSprite_44_bossLaser / frame_1 / DoAction.as
Text File  |  2013-04-24  |  493b  |  23 lines

  1. function onEnterFrame()
  2. {
  3.    _Y = _Y - 8;
  4.    if(this.hitTest(_root.ship))
  5.    {
  6.       depth = _root.getNextHighestDepth();
  7.       _root.attachMovie("exp","exp" + depth,depth);
  8.       exp = eval("_root.exp" + depth);
  9.       exp._x = _X;
  10.       exp._y = _Y;
  11.       _root.death();
  12.       this.removeMovieClip();
  13.    }
  14.    if(_Y < 0)
  15.    {
  16.       this.removeMovieClip();
  17.    }
  18.    if(_root.shieldMC.hitTest(_X,_Y,true) && _root.shieldLevel >= 2)
  19.    {
  20.       this.removeMovieClip();
  21.    }
  22. }
  23.